package com.ftg.learn.chapter12;

import lombok.Data;

/**
 * 小狗类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/2/9 上午9:52
 */
@Data
public class Dog {

    private int dno;

    private String dname;

    int x = 5;

    static int k = 3;

    public static void main(String[] args) {
        int k = 13;
        Dog x1 = new Dog();
        x1.k++;
        Dog x2 = new Dog();
        x2.k++;
        k++;
        System.out.println(x1.k);
        System.out.println(k);
    }

}
